package hypeerweb;

public class UpPointer extends NodeDelegate {
	private static final long serialVersionUID = 1L;

	public UpPointer(Node node) {
		delegate = node;
	}
	
	public void add(Node node) {
		delegate.addDownPointer(new DownPointer(node));
	}
	
	public void remove(Node node) {
		delegate.removeDownPointer(new DownPointer(node));
	}
	
	public void replace(Node node, Node replacingNode) {
		delegate.replaceDownPointer(new DownPointer(node), new DownPointer(replacingNode));
	}
}
